import {
  SAVE_TITLE
} from './constant'

const defatState = {
  title: ''
}

export default function adminReducer(state = defatState, action) {
  switch (action.type) {
    case SAVE_TITLE:
      return {
        title: action.title
      }
      default:
        return state
  }
}